// $Id: UserInput.java 31 2011-09-21 17:36:34Z huijzer@gmail.com $
package lime.user.editor;

import lime.model.User;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

public class UserInput implements IEditorInput {

	private User user;
	
	public UserInput(User user) {
		this.user = user;
	}
	
	public User getUser() {
		return user;
	}
	
	@SuppressWarnings("rawtypes")
	@Override
	public Object getAdapter(Class adapter) {
		return null;
	}

	@Override
	public boolean exists() {
		return false;
	}

	@Override
	public ImageDescriptor getImageDescriptor() {
		return null;
	}

	@Override
	public String getName() {
		return user.getObjectName();
	}

	@Override
	public IPersistableElement getPersistable() {
		return null;
	}

	@Override
	public String getToolTipText() {
		return user.getObjectName();
	}

}
